package com.dongnao.jack.registry.handler;

import java.io.Serializable;

import com.dongnao.jack.spring.parse.ProtocolConfig;

/**
 * 
 * @ClassName: JedisServiceConfigBean 
 * @Description: 用来存储服务配置信息存放在redis中的数据格式
 * @author xuyp
 * @date 2018年4月20日 上午10:46:34 
 *
 */
public class JedisServiceConfigBean implements Serializable {

    /** 
     * @Fields serialVersionUID : TODO(用一句话描述这个变量表示什么) 
     */
    private static final long serialVersionUID = -4437134440092382130L;

    private String hostAndIp;

    private String ref;

    private ProtocolConfig protocol;

    public String getHostAndIp() {
        return hostAndIp;
    }

    public void setHostAndIp(String hostAndIp) {
        this.hostAndIp = hostAndIp;
    }

    public String getRef() {
        return ref;
    }

    public void setRef(String ref) {
        this.ref = ref;
    }

    public ProtocolConfig getProtocol() {
        return protocol;
    }

    public void setProtocol(ProtocolConfig protocol) {
        this.protocol = protocol;
    }

    @Override
    public String toString() {
        return "JedisServiceConfigBean [hostAndIp=" + hostAndIp + ", ref=" + ref + ", protocol=" + protocol + "]";
    }

}
